#ifndef FORM_H
#define FORM_H

#include <QWidget>
#include <QMimeData>
#include <QList>

namespace Ui {
class Form;
}

class Form : public QWidget
{
    Q_OBJECT

public:
    explicit Form(QWidget *parent = nullptr);
    ~Form();

protected:
    void dragEnterEvent(QDragEnterEvent*event) Q_DECL_OVERRIDE;//拖曳进入事件
    void dragMoveEvent(QDragMoveEvent *event) Q_DECL_OVERRIDE;//拖曳移动事件
    void dropEvent(QDropEvent *event) Q_DECL_OVERRIDE;//拖曳释放事件
    void dragLeaveEvent(QDragLeaveEvent *event);//拖曳离开事件

    void paintEvent(QPaintEvent *event);

protected:
    QList<QString> m_DataList;
    QImage m_data;
private:
    Ui::Form *ui;
};

#endif // FORM_H
